import wx

class Info(wx.TextCtrl):
    """Info class"""
    
    def __init__(self, parent):
        style = wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_RICH2
        wx.TextCtrl.__init__(self, parent, style=style)
    
    @property
    def model(self):
        return self._post
    
    @model.setter
    def model(self, post):
        self._post = post
        self.Value = str(post) if post else ''
